<template>
    <div>
      {{appShowNum}}
      <button @click="change">change</button>
    </div>
</template>

<script>
  export default {
    name: "vuex-test",
    computed: {
      appShowNum() {
        return this.$store.getters.getMun
      }
    },
    methods:{
      change(){
        this.$store.commit('addNum',{
          num:14
        })
      }
    }
  }
</script>

<style scoped>

</style>
